import { connect } from 'react-redux'
import Header from '../components/Header'
import { addTodo, makePostTodo } from '../actions'
const mapStateToProps = (state) => ({error: state.profile.error})
export default connect(mapStateToProps, { addTodo, makePostTodo })(Header)
